﻿#:import FittableLabel ui.fittable_widgets.FittableLabel
#:import DisableableButton ui.disableable_button.DisableableButton
#:import ConfirmationButton ui.confirmation_button.ConfirmationButton

<GuessWordScreen>:
    guess_button: btn
    skip_button: skip_btn
    word_label: wlabel
    progress_bar: pr_bar
    orientation: 'vertical'
    ProgressBar:
        id: pr_bar
        size_hint_y: 0.4
        value: root.pbValue
        max: root.pbMaxValue
    FittableLabel:
        id: wlabel
        text: root.word_str
    BoxLayout:
        orientation: 'horizontal'
        BoxLayout:
            orientation: 'vertical'
            ConfirmationButton:
                color_normal: 1,0,0,1
                text_normal: _('Fail')
                on_confirm: root.fail()
            DisableableButton:
                id: skip_btn
                color: 1,1,1,1
                text: _('Change')
                on_release: root.put_back()
        DisableableButton:
            id: btn
            color: 0,1,0,1
            text: _('Guessed')
            on_release: root.guessed()




